package com.xuhao.examai.question.infrastructure.persistence;

import com.xuhao.examai.question.domain.models.Question;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface QuestionRepository extends JpaRepository<Question, Long> {
	List<Question> findByExamId(Long examId);

	List<Question> findByKnowledgePointId(Long knowledgePointId);

	List<Question> findByType(Question.QuestionType type);

	List<Question> findByExamIdAndType(Long examId, Question.QuestionType type);
}
